package org.erepublik.company.searchCriteria;

import java.util.Comparator;

import org.erepublik.company.comparators.ProductComparatorByPriceInGold;
import org.erepublik.company.comparators.WeaponComparatorByPricePerUse;
import org.erepublik.company.product.Weapons;

public enum EWeaponComparator {
    SORT_BY_PRICE( new ProductComparatorByPriceInGold(), "Sort by price" ),
    SORT_BY_PRICE_PER_USE( new WeaponComparatorByPricePerUse(), "Sort by price per use" );
    
    private String name;
    EWeaponComparator(Comparator<? super Weapons> comparator, String name) {
        this.comparator = comparator;
        this.setName(name);
    }
    
    private Comparator<? super Weapons> comparator;

    
 
    public Comparator<? super Weapons> getComparator() {
        return comparator;
    }



    public void setName(String name) {
        this.name = name;
    }



    public String getName() {
        return name;
    }
}
